package com.wgchao.pharmacymg.Infrastructure.back;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: PageData
 * @author: wgchao
 * @createTime: 2019/10/19 10:07 AM
 * @Description: 分页数据
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageData<T> implements Serializable {
    private int page;
    private int limit;
    private int total;
    private List<T> rows;

    public PageData<T> setRows(List<T> rows) {
        this.rows = rows;
        return this;
    }
}
